// 服务列表
import request from '@/utils/request'
// 机构服务列表
export function prodSpecList (params) {
  return request({
    url: '/prodSpec/listPage',
    method: 'get',
    params
  })
}
// 服务列表--分类结构
export function prodSpecList1 (params) {
  return request({
    url: '/prodSpec/list',
    method: 'get',
    params
  })
}
// 服务列表详情
export function getProdSpecById (params) {
  return request({
    url: '/prodSpec/getProdSpecById',
    method: 'get',
    params
  })
}
// 服务列表增加
export function prodSpecsave (data) {
  return request({
    url: '/prodSpec/save',
    method: 'post',
    data: data
  })
}
// 删除
export function prodSpecdelete (params) {
  return request({
    url: '/prodSpec/delete',
    method: 'get',
    params
  })
}
// 价格配置
export function getProdSpecSkuListShow (params) {
  return request({
    url: '/prodSpec/getProdSpecSkuListShow',
    method: 'get',
    params
  })
}

// 服务类型列表
export function serverspecList (params) {
  return request({
    url: '/serverspec/listPage',
    method: 'get',
    params
  })
}
export function serverspecList1 (params) {
  return request({
    url: '/serverspec/list',
    method: 'get',
    params
  })
}
// 新增
export function serverspecSave (data) {
  return request({
    url: '/serverspec/save',
    method: 'post',
    data: data
  })
}

// 删除
export function serverspecDelete (params) {
  return request({
    url: '/serverspec/delete',
    method: 'get',
    params
  })
}
// 单个
export function getServerSpecById (params) {
  return request({
    url: '/serverspec/getServerSpecById',
    method: 'get',
    params
  })
}

// 获取上门库存表格
export function productGetProdStockSetListShow (params) {
  return request({
    url: '/product/getProdStockSetListShow',
    method: 'get',
    params
  })
}
